<div class="fui-page" ng-if="pagedata.op == 'list'">
	<div class="fui-tab fui-tab-danger" style="top:0">
			<a class="a external {{pagedata.params.status == 100?'active':''}}" ng-click="pagedata.params.status = 100;tool.get_list('jy_djhome/order/list/',true)">全部</a>
			<a class="a external {{pagedata.params.status == 0?'active':''}}" ng-click="pagedata.params.status = 0;tool.get_list('jy_djhome/order/list/',true)">待付款</a>
			<a class="a external {{pagedata.params.status == 1?'active':''}}" ng-click="pagedata.params.status = 1;tool.get_list('jy_djhome/order/list/',true)">待接单</a>
			<a class="a external {{pagedata.params.status == 2?'active':''}}" ng-click="pagedata.params.status = 2;tool.get_list('jy_djhome/order/list/',true)">已接单</a>
			<a class="a external {{pagedata.params.status == 10?'active':''}}" ng-click="pagedata.params.status = 10;tool.get_list('jy_djhome/order/list/',true)">已完成</a> 
	</div>
	<div class='fui-content order-list' style="top:0">
	<div class='jy-content'>	
		<div class="fui-cell-group radius" style="padding:0.5rem;" ng-repeat="item in pagedata.list">
			<div class="fui-list-group" style="margin-top:0;">
				<div ng-if="item.worker_id>0" class="fui-list">
					<a class="fui-list-media">
						<img style="width: 3rem;height:3rem;" class="round" ng-src="{{item.worker.avatar ||'../core/resource/images/nopic.jpg'}}" />
					</a>
					<div class="fui-list-inner">
						<div class="title"><i class="icon icon-shejiao" style="color:#00c568"></i> {{item.worker.name || '匿名用户'}} （{{item.worker.sex==1?'男':'女'}}）
						</div>
						<div class="title" style="font-size:0.6rem">电话：{{item.worker.mobile}}</div> 
						<div class="title" style="font-size:0.6rem">成单：{{item.worker.ordersum || '0'}}笔</div>
					</div>
					<a class="jump" bindtap="callphone" data-phone="{{item.worker.mobile}}">
						<i class="icon icon-phone" style="width: 2rem; text-align: center;"></i>
					</a>
				</div>
			</div>
			<div class="fui-cell" href="javascript:;">
                <div class="fui-cell-label" style="width:auto"><i class="icon jinyunicon icon-quanbudingdan"/></div>
                <div class="fui-cell-info">
                    <span>{{item.ordersn}}</span>
                </div>
                <div class="fui-cell-remark noremark" style="color:#f60">{{pagedata.type[item.status]}}</div>
            </div>
			<div class="fui-cell">
				<div class="fui-cell-label" style="width:auto"><i class="icon jinyunicon icon-shijian"/></div>
				<div class="fui-cell-info">{{item.createtime}}</div>
			</div>
			<div class="fui-cell">
				<div class="fui-cell-label" style="width:auto"><i class="icon icon-map" style="font-size:0.6rem"/></div>
				<div class="fui-cell-info">上门时间：{{item.day}} {{item.time2}}</div>
			</div>
			<div ng-repeat="g in item.goods" class="fui-cell" style="padding:0.5rem">
                <div class="fui-cell-label" style="width:auto;padding-right:0.4rem">
                    <div style="width:4.5rem;margin:0 auto">
					<img class="round" style="border-radius:0.3rem;height:3.5rem;width:4.5rem" ng-src="{{tomedia(g.image) || '../addons/jy_djhome/resource/images/xm.png'}}">
					</div>
                </div>
                <div class="fui-cell-text" style="margin-top:0">
                    <div class="title" style="font-size:0.75rem">
						<span class="bold">{{g.title}}<span>
					</div>
                    <div class="gray" style="margin-top:0.6rem;height:auto;font-size:0.5rem">
						<span style="color:red">
						<span style="font-size:0.8rem">{{g.price}}</span>元/人次
						</span>
						<i class="icon icon-shijian syscolor" style="font-size:0.6rem;padding-left:0.2rem"></i>
						<span>{{g.times}}分钟</span>
					</div>
                </div>
				<div class="fui-cell-remark noremark">
					X{{g.total}}
				</div>
			</div>
			<div class="fui-icon-group noborder col-3">
                <a class="fui-icon-col-sm external">
					<div class="text" style="color: #666666;">项目费用</div>
                    <div class="icon"><i class="icon jinyunicon icon-goumai" style="font-size:34rpx"/></div>
                    <div class="text" style="color: #F60;">￥{{item.price1}}元</div>
                </a>
                <a class="fui-icon-col-sm external">
					<div class="text" style="color: #666666;">出行费用</div>
                    <div class="icon"><i class="icon jinyunicon icon-goumai" style="font-size:34rpx"/></div>
                     <div class="text" style="color: #F60;">￥{{item.chefee}}元</div>
                </a>
                <a class="fui-icon-col-sm external">
					<div class="text" style="color: #666666;">总费用</div>
                    <div class="icon"><i class="icon jinyunicon icon-goumai" style="font-size:34rpx"/></div>
                    <div class="text" style="color: #F60;">￥{{item.price}}元</div>
                </a>
			</div>
			<div class="fui-list-group-title lineblock opblock r">
						<span class="status noremark">
							<div ng-if="item.status == 9 && item.ispay !=1" class="btn btn-sm btn-default-o order-delete" ng-click="pay_submit({},'//pay/id='+item.id,'/order/','/order/')">支付订单</div>
							<div ng-if="item.status == 9 && item.ispay ==1" class="btn btn-sm btn-default-o order-delete" ng-click="access_json('jy_djhome/order/done/id='+item.id);">点击完成</div>
							<div ng-if="item.status == 55" class="btn btn-sm btn-default-o order-delete" ng-click="access_json('jy_djhome/invoice_sq/main/orderid='+item.id);">申请发票</div>
							<div ng-if="item.status == 4 || item.status == 5" class="btn btn-sm btn-default-o order-delete" ng-click="post({},'//del/id='+item.id);">删除</div>
							<div ng-if="item.status == 3 && item.cel == 1"  class="btn btn-sm btn-danger-o order-finish" ng-click="post({},'jy_djhome/order/dcel/id='+item.id)">确认取消</div>
							<div ng-if="item.status == 0" class="btn btn-sm btn-danger-o order-finish" ng-click="post({},'jy_djhome/order/cel/id='+item.id)">取消</div>
						</span>
			</div>
		</div>
		<div class="content-empty" ng-if="pagedata.list.length == 0">
		  <i class="icon icon-cry" style="width: 240rpx;margin-bottom: 0.5rem;"></i><div style="color: #999;font-size: 30rpx">您暂时没有订单！</div>
		</div>
	</div>
	</div>
</div>
<div ng-include="sys_html('common/pluginnav',true)"></div>
<script>
scope.tool.get_list('jy_djhome/order/list/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_djhome/order/list/');
}
</script>